package com.university.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.university.dao.StudentDAO;
import com.university.service.StudentService;
import com.university.utils.Pager_utils;
import com.university.vo.Student;

@Transactional
@Service("studentService")
public class StudentServiceImpl implements StudentService {

	@Resource
	private StudentDAO studentDAO ;
	
	@Override
	public void save(Student student) {
		// TODO Auto-generated method stub
		studentDAO.save(student);
	}

	@Override
	public void update(Student object) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(Student object) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(Integer id) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void delete(String ids) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public Student findById(Integer id) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Student> findAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Student> findAll(Pager_utils pager) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getDataCount() {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public List<Student> findAll(Student object) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public List<Student> findAll(Student object, Pager_utils pager) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int getDataCount(Student object) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public Student findbyPhone(String phone) {
		// TODO Auto-generated method stub
		return studentDAO.findbyPhone(phone);
	}

	@Override
	public Student findbyUsername(String username) {
		// TODO Auto-generated method stub
		return studentDAO.findbyUsername(username);
	}

}
